//
//  WoDeWeiDian.m
//  EJLX
//
//  Created by adc on 15/11/18.
//  Copyright © 2015年 江苏一键联信息科技有限公司. All rights reserved.
//

#import "WoDeWeiDian.h"

@implementation WoDeWeiDian
+(id)userWithDictionary:(NSDictionary*)userDic
{
    return [[self alloc]initWithDictionary:userDic];
}
-(id)initWithDictionary:(NSDictionary*)userDic
{
    self=[super init];
    if (self)
    {
        _imgUrl=[userDic[@"imgUrl"]copy];
        _title=[userDic[@"title"]copy];
        //_newPrice=[userDic[@"newPrice"]intValue];
        _stockNum=[userDic[@"stockNum"]intValue];
        _productId=[userDic[@"productId"]intValue];
        _selling=userDic[@"selling"];
        _discounting=userDic[@"discounting"];
        
      _price=[userDic[@"price"]intValue];
       // _shopId=[userDic[@"shopId"]intValue];
        _discountPrice=[userDic[@"discountPrice"]intValue];
      //  _deliveryFee=[userDic[@"deliveryFee"]intValue];
        _commision=[userDic[@"commision"]intValue];
        _collectionNum=[userDic[@"collectionNum"]intValue];
        
       // _discount=[userDic[@"discount"]copy];
        
       // _favourited=[userDic[@"deliveryFee"]intValue];
        //_brokerage=[userDic[@"brokerage"]intValue];
    }
    return self;
}
@end
